<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib prefix="s" uri="/struts-tags" %>

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%--  <%@ taglib prefix="tiles" uri="struts-tiles" %> --%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<base href="<%=basePath%>">
<style>

#container{margin-left:auto;margin-right:auto;width:100%}

#header{float:left;width:100%;height:150px;background:pink}

#daohang{float:left;width:150px;height:400px;background:blue;word-wrap:break-word}

#right {float:right;width:1000px;height:400px;background:green}

#mbottom{float:left;width:100%;height:150px;background:grey}

</style>
	
<div id="container" style="height:auto">
	<div id="header">
		<tiles:insertAttribute name="header" />
	</div>
	
	<div id="daohang">
		<tiles:insertAttribute name="left" />
	</div>
	
	<div id="right" style="border:none">
		<tiles:insertAttribute name="main" />
	</div>
	
	<div id="mbottom" style="height:100px">
		<tiles:insertAttribute name="foot" />
	</div>

</div>